<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/includeTaglib.jsp"%>

								<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
						         <tr class="rowHead">
						           <td height="20" width="20" align="center">
<!-- 						           	<input type="checkbox" id="checkAll" onclick="javascript:checkAllOrNot();"> -->
						           </td>
						           <td height="20" nowrap align="center" class="globalTextBold">计划名称</td>
						           <td height="20" nowrap align="center" class="globalTextBold">审核人</td>
						           <td height="20" nowrap align="center" class="globalTextBold">指派人</td>
                                     <td height="20" nowrap align="center" class="globalTextBold">执行人</td>
                                     <td height="20" nowrap align="center" class="globalTextBold">计划类型</td>
                                     <td height="20" nowrap align="center" class="globalTextBold">计划日期</td>
                                     <td height="20" nowrap align="center" class="globalTextBold">计划状态</td>
						           <%--<td height="20" nowrap align="center" class="globalTextBold">项目名称</td>--%>
						           <%--<td height="20" nowrap align="center" class="globalTextBold">项目类型</td>--%>
						           <%--<td height="20" nowrap align="center" class="globalTextBold">终端名称</td>--%>
						           <td height="20" nowrap align="center" class="globalTextBold">操作</td>
						         </tr>
						         	<c:forEach var="plan" items="${page.data}" varStatus="status">
										<tr class="rowClass">
								            <td height="20" width="20" align="center">
<!-- 								            	<input type="checkbox" name="cbIds" value="1" onclick="javascript:checkPerBox();"> -->
								            </td>
								            <td height="20" class="globalText">${plan.name}</td>
								            <td height="20" class="globalText">${plan.confirmedByName}</td>
								            <td height="20" class="globalText">${plan.assignedByName}</td>
								            <td height="20" class="globalText">${plan.userDisplayName}</td>
								            <td height="20" class="globalText"><c:choose><c:when test="${plan.type=='assignment'}">指派任务</c:when><c:otherwise>自建任务</c:otherwise></c:choose></td>
								            <td height="20" class="globalText"><fmt:formatDate value="${plan.planDate}" pattern="yyyy-MM-dd"/></td>
                                            <td height="20" class="globalText"><c:choose><c:when test="${plan.status=='new'}">未审核</c:when><c:when test="${plan.status=='confirm'}">已审核</c:when><c:when test="${plan.status=='deny'}">审核退回</c:when><c:when test="${plan.status=='change'}">已变更</c:when></c:choose></td>
                                        <%--<td height="20" class="globalText">&nbsp;</td>--%>
								            <%--<td height="20" class="globalText">&nbsp;</td>--%>
								            <%--<td height="20" class="globalText">&nbsp;</td>--%>
								            <td height="20" class="globalText">

<%--<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_SUB_PLANTASK_VIEW_CODE}" secureType="${MODULE_SUB_PLANTASK_VIEW_TYPE}">--%>
								            	<input type="button" class="btnStyle" value="查看" onclick="javascript:window.location='<c:url value="/plan/planDetail.html" />?planId=${plan.id}';">
<%--</sec:accesscontrollist>--%>

                                                <c:if test="${plan.status!='confirm'}">
                                                    <input type="button" class="btnStyle" value="编辑" onclick="javascript:window.location='<c:url value="/plan/planEdit.html" />?planId=${plan.id}<c:if test="${searchType=='subordinate'}">&searchType=subordinate</c:if>';">
                                                </c:if>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_SUB_PLANTASK_AUDIT_CODE}" secureType="${MODULE_SUB_PLANTASK_AUDIT_TYPE}">


												<c:if test="${plan.status!='confirm' and searchType=='subordinate'}">
														<input type="button" class="btnStyle" value="审核" onclick="javascript:window.location='<c:url value="/plan/planStatus.html" />?planId=${plan.id}' ">
												</c:if>
</sec:accesscontrollist>
											</td>
							          	</tr>
									</c:forEach>
						       </table>

						       <%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

						       <script>
						       		function statusChange(planId,status){
						       			if(!confirm("确认当前审核操作?")){
						       				return;
						       			}
						       			window.location='<c:url value="/plan/planStatusEdit.html" />?planId='+planId+"&status="+status;
						       		}
						       </script>
